package com.campus.counseling.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("chat_message")
public class ChatMessage {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    private Long appointmentId;
    
    private Long senderId;
    
    private Long receiverId;
    
    private String content;
    
    private String type;

    
    /**
     * 消息状态
     * SENDING-发送中, DELIVERED-已送达, RECALLED-已撤回
     */
    private String status;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
} 